package com.pub.database;

import java.util.ArrayList;
import java.util.Hashtable;

public class DataViewForm {
  private String gstrColRelation[][];
  private ArrayList<Hashtable<String,Object>> galtColRelation=null;
  private long glngPageRowCount;
  private int gintNowPage;
  private int gintReadDataSize;
  private long glngTotalDataSize;
  private int gintColumnSize;
  private String gstrSQL;
  private String gstrPageActionURI;
  private String gstrPageScript;
  private boolean gblnPageBtnOnTop;
  private boolean gblnPageBtnOnButtom;
  private String gstrCountSQL;
  private String gstrOrderByFields;
  private String gstrOrderBySeq;
  private String gstrSQLCondition;
  private String gstrdvOrderByFields;
  private String gstrdvOrderBySeq;
  private String gstrdvSQLCondition="";
  private String gstrDataViewAction;
  private String gstrTablesList;
  private String gstrGroupBy;
  private String gstrHaving;
  private String gstrHtmlFormName="DataViewForm";
  private String gstrPropertiesFile;
  private String gstrSubmitMethod="POST";
  private String gstrFilterCol;
  private String gstrFilterValue;
  private boolean gblnJumpPageShow;
  private boolean gblnRowPageShow;
  private boolean gblnFilterShow;
  private boolean gblnRowsInfoShow;
  private boolean gblnExcelShow;
  private boolean gblnOrderEnable;
  private boolean gblnAddNewShow;
  private String gstrFieldsList;
  private String gstrPrimaryField;
  private boolean gblnJumpPageButtonShow;
  private boolean gblnBatchUpdateButtonShow=false;
  private boolean gblnExitButtonShow=false;
  private String gstrTableHeaderHtml="CLASS='td_head_grid1'";
  private Hashtable<String,String> ghtTableHeaderHtml=null;
  private String gstrTableDataHtml;
  private String gstrTableHtml="width='100%'";
  private String gstrTableId="DataViewTable";
  private boolean gblnShowHeaderWhenNoData=true;
  private boolean gblnHeaderFix=false;
  private String gstrTableDataHeight="";
  private String gstrAppendRowScript=null;

  public String getAppendRowScript(){
      return this.gstrAppendRowScript;
  }
  public void setAppendRowScript(String pstrAppendRowScript){
      this.gstrAppendRowScript=pstrAppendRowScript;
  }

  public String getTableDataHeight(){
      return this.gstrTableDataHeight;
  }
  public void setTableDataHeight(String pstrParameter){
      this.gstrTableDataHeight=pstrParameter;
  }
  public boolean getHeaderFix(){
      return this.gblnHeaderFix;
  }
  public void setHeaderFix(boolean pblnShowHeaderWhenNoData){
      this.gblnHeaderFix=pblnShowHeaderWhenNoData;
  }
  public boolean getShowHeaderWhenNoData(){
      return this.gblnShowHeaderWhenNoData;
  }
  public void setShowHeaderWhenNoData(boolean pblnShowHeaderWhenNoData){
      this.gblnShowHeaderWhenNoData=pblnShowHeaderWhenNoData;
  }
  public String getTableHtml(){
      return this.gstrTableHtml;
  }
  public void setTableHtml(String pstrTableHtml){
      this.gstrTableHtml=pstrTableHtml;
  }
  public String getTableId(){
      return this.gstrTableId;
  }
  public void setTableId(String pstrTableId){
      this.gstrTableId=pstrTableId;
  }
  public String getTableDataTrHtml(){
      return this.gstrTableDataHtml;
  }
  public void setTableDataTrHtml(String pstrTableDataHtml){
      this.gstrTableDataHtml=pstrTableDataHtml;
  }

  public String getTableHeaderHtml(){
      return this.gstrTableHeaderHtml;
  }
  public void setTableHeaderHtml(String pstrTableHeaderHtml){
      this.gstrTableHeaderHtml=pstrTableHeaderHtml;
  }
  public Hashtable<String,String> getTableHeaderHtmlForHashtable(){
    return this.ghtTableHeaderHtml;
}
public void setTableHeaderHtmlForHashtable(Hashtable<String,String> phtTableHeaderHtml) {
    this.ghtTableHeaderHtml = phtTableHeaderHtml;
}
  public boolean getJumpPageButtonShow(){
      return this.gblnJumpPageButtonShow;
  }
  public void setJumpPageButtonShow(boolean pblnJumpPageButtonShow){
      this.gblnJumpPageButtonShow=pblnJumpPageButtonShow;
  }

  public String getPrimaryField(){
      return this.gstrPrimaryField;
  }
  public void setPrimaryField(String pstrPrimaryField){
      this.gstrPrimaryField=pstrPrimaryField;
  }

  public String getFieldsList(){
      return this.gstrFieldsList;
  }
  public void setFieldsList(String pstrFieldsList){
      this.gstrFieldsList=pstrFieldsList;
  }

  public boolean getOrderEnable(){
      return this.gblnOrderEnable;
  }
  public void setOrderEnable(boolean pblnOrderEnable){
      this.gblnOrderEnable=pblnOrderEnable;
  }
  public boolean getExcelShow(){
      return this.gblnExcelShow;
  }
  public void setExcelShow(boolean pblnExcelShow){
      this.gblnExcelShow=pblnExcelShow;
  }

  public boolean getRowPageShow(){
      return this.gblnRowPageShow;
  }
  public void setRowPageShow(boolean pblnRowPageShow){
      this.gblnRowPageShow=pblnRowPageShow;
  }

  public boolean getBatchUpdateButtonShow(){
      return this.gblnBatchUpdateButtonShow;
  }
  public void setBatchUpdateButtonShow(boolean pblnRowPageShow){
      this.gblnBatchUpdateButtonShow=pblnRowPageShow;
  }

  public boolean getExitButtonShow(){
      return this.gblnExitButtonShow;
  }
  public void setExitButtonShow(boolean pblnExitShow){
      this.gblnExitButtonShow=pblnExitShow;
  }

  public boolean getAddNewShow(){
      return this.gblnAddNewShow;
  }
  public void setAddNewShow(boolean pblnAddNewShow){
      this.gblnAddNewShow=pblnAddNewShow;
  }
  public boolean getFilterShow(){
      return this.gblnFilterShow;
  }
  public void setFilterShow(boolean pblnFilterShow){
      this.gblnFilterShow=pblnFilterShow;
  }
  public boolean getRowsInfoShow(){
      return this.gblnRowsInfoShow;
  }
  public void setRowsInfoShow(boolean pblnRowsInfoShow){
      this.gblnRowsInfoShow=pblnRowsInfoShow;
  }
  public boolean getJumpPageShow(){
      return this.gblnJumpPageShow;
  }
  public void setJumpPageShow(boolean pblnJumpPageShow){
      this.gblnJumpPageShow=pblnJumpPageShow;
  }
  public String getFilterCol(){
      return this.gstrFilterCol;
  }
  public void setFilterCol(String pstrFilterCol){
      this.gstrFilterCol=pstrFilterCol;
  }
  public String getFilterValue(){
      return this.gstrFilterValue;
  }
  public void setFilterValue(String pstrFilterValue){
      this.gstrFilterValue=pstrFilterValue;
  }

  public String getSubmitMethod(){
      return this.gstrSubmitMethod;
  }
  public void setSubmitMethod(String pstrSubmitMethod){
      if(pstrSubmitMethod.toUpperCase().equals("POST") || pstrSubmitMethod.toUpperCase().equals("GET")){
          this.gstrSubmitMethod = pstrSubmitMethod.toUpperCase();
      }
  }
  public String getPropertiesFile(){
      return this.gstrPropertiesFile;
  }
  public void setPropertiesFile(String pstrPropertiesFile){
      this.gstrPropertiesFile=pstrPropertiesFile;
  }

  public String getHtmlFormName(){
      return this.gstrHtmlFormName;
  }
  public void setHtmlFormName(String pstrHtmlFormName){
      this.gstrHtmlFormName=(pstrHtmlFormName==null || pstrHtmlFormName.equals("null") ? "DataViewForm" : pstrHtmlFormName);
  }
  public String getGroupBy(){
      return this.gstrGroupBy;
  }
  public void setGroupBy(String pstrGroupBy){
      this.gstrGroupBy=pstrGroupBy;
  }
  public String getHaving(){
      return this.gstrHaving;
  }
  public void setHaving(String pstrHaving){
      this.gstrHaving=pstrHaving;
  }

  public String getTablesList(){
      return this.gstrTablesList;
  }
  public void setTablesList(String pstrTablesList){
      this.gstrTablesList=pstrTablesList;
  }

  public String getDataViewAction(){
      return this.gstrDataViewAction;
  }
  public void setDataViewAction(String pstrDataViewAction){
      this.gstrDataViewAction=pstrDataViewAction;
  }

  public String getdvSQLCondition(){
      return this.gstrdvSQLCondition;
  }
  public void setdvSQLCondition(String pstrSQLCondition){
      this.gstrdvSQLCondition=pstrSQLCondition;
  }
  public String getdvOrderByFields(){
      return this.gstrdvOrderByFields;
  }
  public void setdvOrderByFields(String pstrOrderByFields){
      this.gstrdvOrderByFields=pstrOrderByFields;
  }
  public String getdvOrderBySeq(){
      return this.gstrdvOrderBySeq;
  }
  public void setdvOrderBySeq(String pstrOrderBySeq){
      this.gstrdvOrderBySeq=pstrOrderBySeq;
  }
  public String getSQLCondition(){
      return this.gstrSQLCondition;
  }
  public void setSQLCondition(String pstrSQLCondition){
      this.gstrSQLCondition=pstrSQLCondition;
  }
  public String getOrderByFields(){
      return this.gstrOrderByFields;
  }
  public void setOrderByFields(String pstrOrderByFields){
      this.gstrOrderByFields=pstrOrderByFields;
  }
  public String getOrderBySeq(){
      return this.gstrOrderBySeq;
  }
  public void setOrderBySeq(String pstrOrderBySeq){
      this.gstrOrderBySeq=pstrOrderBySeq;
  }
  public String getCountSQL(){
     return this.gstrCountSQL;
  }
  public void setCountSQL(String sql){
     this.gstrCountSQL=sql;
  }

  public int getReadDataSize(){
     return this.gintReadDataSize;
  }
  public void setReadDataSize(int size){
     this.gintReadDataSize=size;
  }

  public long getTotalDataSize(){
      return this.glngTotalDataSize;
  }
  public void setTotalDataSize(long plngTotalDataSize){
      this.glngTotalDataSize=plngTotalDataSize;
  }

  public int getColumnSize(){
      return this.gintColumnSize;
  }
  public void setColumnSize(int pintColumnSize){
      this.gintColumnSize=pintColumnSize;
  }
  /*public String getFormAction(){
      return this.gstrFormAction;
  }
  public void setFormAction(String strAction){
      this.gstrFormAction=strAction;
  }*/

  public boolean getPageBtnOnTop(){
      return this.gblnPageBtnOnTop;
  }
  public void setPageBtnOnTop(boolean pblnPageBtnOnTop){
      this.gblnPageBtnOnTop=pblnPageBtnOnTop;
  }
  public boolean getPageBtnOnButtom(){
      return this.gblnPageBtnOnButtom;
  }
  public void setPageBtnOnButtom(boolean pblnPageBtnOnButtom){
      this.gblnPageBtnOnButtom=pblnPageBtnOnButtom;
  }

  public String getPageScript(){
      return this.gstrPageScript;
  }
  public void setPageScript(String strScript){
      this.gstrPageScript=strScript;
  }

  public String[][] getColRelation(){
      return gstrColRelation;
  }
  public void setColRelation(String array[][]){
      this.gstrColRelation=array;
  }
  public ArrayList<Hashtable<String,Object>> getColRelationUseArrayList(){
      return galtColRelation;
  }
  public void setColRelationUseArrayList(ArrayList<Hashtable<String,Object>> array){
      this.galtColRelation=array;
  }
  public long getPageRowCount(){
      return glngPageRowCount;
  }
  public void setPageRowCount(long lngCount){
      this.glngPageRowCount=lngCount;
  }
  public int getNowPageNum(){
      return gintNowPage;
  }
  public void setNowPageNum(int gintNowPage){
      this.gintNowPage=gintNowPage;
  }
  public String getSQL(){
      return this.gstrSQL;
  }
  public void setSQL(String sql){
      this.gstrSQL=sql;
  }
  public String getPageActionURI(){
      return this.gstrPageActionURI;
  }
  public void setPageActionURI(String strURI){
      this.gstrPageActionURI=strURI;
  }
}
